package com.zjl.spring.demo;

import java.io.IOException;

/**
 * @Auther: zhuangjl
 * @Date: 2021/11/11 14:41
 */
public class TryDemo {

    public static void main(String[] args) {


        try {
            int i = 1 / 0;
            System.out.println("eat try中输出i:" + i);
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("eat catch:" + e.getMessage());
        } finally {
            System.out.println("eat finally end");
        }
        System.out.println("eat method end");
    }

}
